/*
//设置信用卡密码 创建信用卡
//两个成员变量  卡号和密码
//设置两个不同的构造方法  一个不设置密码  使用初始密码
//                    一个设置密码   使用现有密码
public class Credit_card {
    String card_number;
    String password = "123456";

    public Credit_card(String card_number){
        this.card_number = card_number;
    }

    public Credit_card(String card_number,String password){
        this(card_number);
        this.password = password;;
    }

    public static void main(String[] args){

        Credit_card wrong = new Credit_card("12345678910");

        System.out.println("卡号："+wrong.card_number);
        System.out.println("密码："+wrong.password);

        System.out.println();
        Credit_card turn = new Credit_card("12345678910","133432");

        System.out.println("卡号："+turn.card_number);
        System.out.println("密码："+turn.password);
    }
}

 */
